<%@page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%@taglib prefix="x" uri="/soar-bx-tags"%>
<x:HeaderParts modal="true"/>
<x:MainPartsTag modal="true">
<x:zone name="MainZone">
<x:Form action="auth/approle.shtml">
<x:ParamsParts>
<x:TextField name="id" type="hidden"/>
</x:ParamsParts>
<x:DataViewParts>
<x:PanelHeading>应用角色
</x:PanelHeading>
<x:PanelBody>
<tr>
<s:iterator id="sys" value="sysPageList">
	<label class="checkbox" style="display: inline-block;margin-left: 25px;">
  		<input type="checkbox" name="ids" value="${sys.ID }" >${sys.ROLE_NAME }
  	</label>
</s:iterator>
</tr>
</x:PanelBody>
</x:DataViewParts>
<x:ButtonsParts>
<x:Button role="success" value="确定" onclick="doSure()"></x:Button>
<x:Button role="default" value="关闭" onclick="X.CloseLayer()"></x:Button>
</x:ButtonsParts>
<x:JsParts fn="doSure">
function doSure()
{
	var ids=new Array();
	$("input[name='ids']").each(function(){
		if(this.checked)
		{
			ids.push(this.value);
		}
	});
	window.parent.chooseRole(ids);
	X.CloseLayer();
}
</x:JsParts>
</x:Form>
</x:zone>
</x:MainPartsTag>
